﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Jp.NicoVideo.Live.Api.Test
{
  public class Program
  {
    #region Entry Point
    static void Main(string[] args)
    {
      Console.Write("Live ID:lv");
      string liveID = "lv" + Console.ReadLine();  //放送ID　lv?????

      PlayerStatusDataSet status = PlayerStatus.Get(liveID);

      if (status == null)
      {
        Console.WriteLine("失敗");
        return;
      }

      Message message = new Message(status, liveID);

      //受信開始
      //コメントが受信されるとOnReceiveChatが実行される
      message.ReceiveChat();
    }
    #endregion
  }
}
